<# # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description: Script is designed to disable Get fun facts, tips, tricks, and more on your lock screen # Configuration Type - USER # Refer: https://answers.microsoft.com/en-us/windows/forum/all/turn-off-windows-spotlight-fun-facts/f96d5c6e-3150-469c-bc0f-d847ba0149b4 # Note: If the registry changed but not effective, advise the customer to reach out windows support #> # Define the registry key path $regKeyPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" # Create the registry key if it doesn't exist if (-not (Test-Path $regKeyPath)) { New-Item -Path $regKeyPath -Force } # Set the registry values Set-ItemProperty -Path $regKeyPath -Name "ContentDeliveryAllowed" -Value 1 -Type DWord Set-ItemProperty -Path $regKeyPath -Name "RotatingLockScreenEnabled" -Value 1 -Type DWord Set-ItemProperty -Path $regKeyPath -Name "RotatingLockScreenOverlayEnabled" -Value 0 -Type DWord Set-ItemProperty -Path $regKeyPath -Name "SubscribedContent-338387Enabled" -Value 0 -Type DWord Write-Host "Fun facts, tips, tricks and other settings was disabled successfully"